package exercicio00;

import java.util.Calendar;


public class DadosConferenciaStub {
	
	private int nSalas = 5;
	private int curSala = 0;
	
	private int nSessoes = 40;
	private int curSessao = 0;
	
	public Calendar getDataInicio() {
		
		Calendar dataInicio = Calendar.getInstance();
		
		return dataInicio;
	}

	public Calendar getDataTermino() {

		Calendar dataTermino = Calendar.getInstance();
		dataTermino.add(Calendar.DAY_OF_MONTH, 10);
		
		return dataTermino;
	}
	
	public Sala getNextSala() {
		
		Sala sala = null;
		
		if (curSala < nSalas) {
			
			sala = new Sala();
			curSala++;
		}
		
		return sala;
	}

	public Sessao getNextSessao() {
		
		Sessao sessao = null;
		
		if (curSessao < nSessoes) {
			
			sessao = new Sessao();
			curSessao++;
		}
		
		return sessao;
	}
	
}
